<?php
class MallSettingModel extends BaseModel
{
	public function getSetting($mid,$key){
		$map = array();
		$map['mid'] = $mid;
		$map['key'] = $key;
		return $this->where($map)->find();
	}

	public function getSettingValue($mid,$key){
		$setting = $this->getSetting($mid,$key);
		return $setting['value'];
	}
}